* STEP 0 : RAW DATA CONSTRUCTION

// identify possible domestic violence cases and drop the ones we don't need
do 0a_identify_possible_DV
// merge data to fleed and folk and keep only cases where victim is your spouse from current or previous 5 years
do 0b_identify_actual_DV
// pull fertility history from child_parent file
do 0c_create_fertility_history 
// pull out other crimes committed 
do 0d_person_year_crime 
// create all cohabitation spells since 2006
do 0e_create_allcouple_income_panel 
// Take DV data and add in violence plus DV info to get final sample (drop female suspects & male victims )
do 0f_create_allcouple_income_panel_withDV 
// create individual level relationship history data: number of relationships and relationship tenure 
do 0g_create_relationship_history  
// create individual level years since graduation data 
do 0h_create_year_since_graduation 
// create mother and father education to link to the main data to define gender norm at individual level 
do 0i_create_mother_father_educ 
// create votes shares data for municipality elections
do 0j_create_vote_shares 
// add firm level info to couple data 
do 0k_create_allcouple_income_panel_addfirm
// create bartik indexes for shock and aizer analysis 
do 0l_create_bartik 


* STEP 1 : MATCHING 

// matching for victims
do 1a_match_victim   
// matching for nonreporting cohabitee of suspect
do 1b_match_suspect_otherrel_fem  
// matching for victims in alternative relationship
do 1c_match_victim_otherrel  
// matching for female partners of suspect who conduct MF violence
do 1d_match_anyMFviol   
// matching for female partners of suspect who conduct MM violence
do 1e_match_anyMMviol  
// create descriptive figure A1 on prop-score distribution & dist of types
do 1e_propscore_victim_analysis

* STEP 2 : BASIC DESCRIPTIVES 

// create Fig 1 
do 2a_descriptive_fig
// create Table 1  
do 2b_descriptive_table
// create Table A1 
do 2c_descriptive_crimetable
// create Table 2 
do 2d_victim_match_balanced_table


* STEP 3 : ANALYSIS 

// create Fig 2a, 2c 
do 3a_victim_descrip_econ_impact
// create Fig 2b, 2d, A12, A13
do 3b_victim_match_econ_impact
// create Table 3
do 3c_victim_external_shock
// create Fig 3, A6, A9, A10, Table A2, Table 4
do 3d_victim_ownhet
// create Fig 4 
do 3e_victim_triplediff
// create Fig 6a, Fig A17a
do 3f_match_analysis_MF_emp
// create Fig 6b, Fig A17b
do 3g_match_analysis_MM_emp
// create Fig 5 & Fig A16
do 3h_suspectother_analysis
// create Table 5
do 3i_oo_analysis 

* STEP 4 : OTHER APPENDIX ANALYSIS 

// Table A3
do 4a_perp_external_shock
// Fig A2 & A3
do 4b_victim_match_svata 
// Fig A4
do 4c_victim_match_perpcrime_impact
// Fig A5 b & d
do 4d_perp_descrip_econ_impact
// Fig A7 
gender norms education
// Fig A8
gender norms vote 
// Fig A11
do 4g_victim_perpshock_het
// Fig A14 & A15
do 4h_victim_report
// Fig A18
do 4j_aizer_replication


